package cn.wolfcode.trip.base.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.annotation.Generated;

@ToString
@Getter
@Setter
public class User {
    private Long id;
    private String email; // 用户邮箱
    private String nickName; // 用户昵称
    private String password; //用户密码
    private String place; // 用户地区
    private String headImgUrl; // 用户头像
    private Integer gender = -1; // 用户性别
    //关注
    private Long attentionId;
    //粉丝
    private Long fancierId;

    public String getGenderName() {
        if (gender == 0) {
            return "女";
        } else if (gender == 1) {
            return "男";
        } else {
            return "保密";
        }
    }

    //    public String
    private String coverImgUrl; //  用户背景图片
    private String sign;  // 用户签名
}